﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/*并没有什么用，只是挂在cube上看相机效果（）*/
namespace ProjectJourney
{
    public class Testcamera : MonoBehaviour
    {
        public GameObject mycube;
        public float movespeed;
        void Update()
        {
            float MoveH = Input.GetAxis("Horizontal");
            float MoveV = Input.GetAxis("Vertical");
            transform.Translate(new Vector3(MoveH, 0, MoveV) * Time.deltaTime * movespeed);
            if (Input.GetButton("Jump"))
            {
                Rigidbody r = GetComponent<Rigidbody>();
                r.AddForce(new Vector3(0, 0.5f, 0), ForceMode.Impulse);
            }
        }
    }
}
